package com.enjoyor.soa.traffic.core.tsms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tsms.constant.RltRoutePostSqlId;
import com.enjoyor.soa.traffic.core.tsms.domain.RltRoutePost;
import com.enjoyor.soa.traffic.core.tsms.mapper.IRltRoutePostMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;

@Service
@Transactional
public class RltRoutePostMapper extends BaseMapper<RltRoutePost> implements IRltRoutePostMapper {

	@Override
	public List<RltRoutePost> getRltRoutePostList(Map map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(RltRoutePostSqlId.SQL_SELECT_LIST), map);
	}

	@Override
	public void delPostByRouteId(String routeId) {
		// TODO Auto-generated method stub
		sqlSessionTemplate.delete(getSqlName(RltRoutePostSqlId.SQL_DELETE_POST_BYROUTEID), routeId);
	}

}